<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Core_Plugin_Translate extends Zend_Controller_Plugin_Abstract
{
  public function routeShutdown(Zend_Controller_Request_Abstract $request)
  {
 		Core_Translate::load(array(
			'adapter' => 'array',
			'content' => '../languages',
			'locale'  => 'vi',
			'scan' 		=> Zend_Translate::LOCALE_DIRECTORY
    ));
    Zend_Validate_Abstract::setDefaultTranslator(Core_Translate::getInstance());
  }
}